<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>积分管理</h1>
	<div class="buttons">
	<a href="{url('admin.php?m=point')}">基本设置</a>
    <a href="{url('admin.php?m=point&f=setting')}">积分策略</a>
    <a href="{url('admin.php?m=point&f=log')}">积分记录</a>
	</div>
	</div>
	<div class="main">



		<form name="save" method="post" action="?m=point" >
		<input type="hidden" name="pointsubmit" value="true" />
		<table width="100%" cellspacing="0" class="tb">
		<tr><td align="right">是否启用：</td>
		{loop $points $k $p}
		<td><input type="checkbox" {if $p['use']}checked=""{/if} value="1" name="point[{$k}][use]" />{$k}</td>
		{/loop}
		</tr>
		<tr><td  align="right">积分名称：</td>
		{loop $points $k $p}
		<td>
		<input type="text" value="{$p['title']}" name="point[{$k}][title]" class="input"/></td>
		{/loop}
		</tr>
		<tr><td align="right">积分单位：</td>
		{loop $points $k $p}
		<td>
		<input type="text" value="{$p['unit']}" name="point[{$k}][unit]" class="input"/></td>
		{/loop}
		</tr>
		<tr><td  width="150"  align="right">交易积分设置：</td><td colspan="3"><select name="used"   style="width:156px;" >
		<option value="0">无</option>
		{loop $points $k $p}
		<option value="{$k}" {if $k==$point['pointuse']}selected{/if}>{$k}({$p['title']})</option>
		{/loop}
		</select><span>设置用户充值,订单赠送等的积分类型</span></td></tr>
		<tr>
				<td  width="150"  align="right">现金/积分兑换比率：</td>
				<td colspan="3"><input type="text" name="ratio" value="{$point['pointratio']}" class="input"    style="width:156px;"/> <span>例如设置为 10，则 1 元可兑换 10 个积分。设置为 0表示禁止使用兑换功能</span></td>
			</tr>
			<tr>
				<td align="right">单次购买最小积分数额：</td>
				<td colspan="3"><input type="text" name="minpoint" value="{$point['pointmin']}" class="input"    style="width:156px;" /> <span>设置用户一次支付所购买的交易积分的最小数额，单位为交易积分的单位，0 为不限制</span></td>
			</tr>
		<tr class="bg2"><td></td><td colspan="3"><input type="submit" class="button" value="保存" /></td></tr>
		</table>
		</form>




	</div>
</div>
{admintemplate footer}